//
//  linlibangbangViewController.m
//  wuyeviewcon
//
//  Created by dsdf on 16/1/16.
//  Copyright © 2016年 joey. All rights reserved.
//

#import "linlibangbangViewController.h"
#import "bangbangxiangqingViewController.h"

@interface linlibangbangViewController ()

@end

@implementation linlibangbangViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view from its nib.
    
//    self.navigationController.navigationBar.barTintColor = [[UIColor alloc] initWithRed:230/255.0 green:55/255.0 blue:55/255.0 alpha:1.0];
//    
//    self.navigationItem.title=@"邻里帮帮";
//    self.navigationController.navigationBar.titleTextAttributes=@{NSForegroundColorAttributeName: [UIColor whiteColor],NSFontAttributeName:[UIFont boldSystemFontOfSize:17]};
//
//    
//    UIButton* button = [UIButton buttonWithType:UIButtonTypeCustom];
//    button.frame = CGRectMake(0, 0, 20, 20);
//    [button setBackgroundImage:[UIImage imageNamed:@"return@2x.png"] forState:UIControlStateNormal];
//    [button addTarget:self action:@selector(messageBtnClick) forControlEvents:UIControlEventTouchUpInside];
//    UIBarButtonItem * rightItem = [[UIBarButtonItem alloc] initWithCustomView:button];
//    self.navigationItem.leftBarButtonItem = rightItem;
//    
//    
//    
//    UIButton* buttonright = [UIButton buttonWithType:UIButtonTypeCustom];
//    buttonright.frame = CGRectMake(0, 0, 20, 20);
//    [buttonright setBackgroundImage:[UIImage imageNamed:@"导航菜单按钮@2x.png"] forState:UIControlStateNormal];
//    [buttonright addTarget:self action:@selector(messrightclick) forControlEvents:UIControlEventTouchUpInside];
//    UIBarButtonItem * leftIem = [[UIBarButtonItem alloc] initWithCustomView:buttonright];
//    self.navigationItem.rightBarButtonItem = leftIem;
//    
    
//
//    
//}
    
    
    

    
    UIButton *button=[[UIButton alloc]init];
    button.frame=CGRectMake(0, 0, 375, 64);
    button.backgroundColor=[UIColor colorWithRed: 230/255.0 green:55/255.0 blue:55/255.0 alpha:1.0];
    [self.view addSubview:button];
    
    
    UILabel *labletext=[[UILabel alloc]init];
    labletext.frame=CGRectMake(155, 34, 66, 14);
    labletext.text=@"邻里帮帮";
    labletext.adjustsFontSizeToFitWidth=YES;
    labletext.textColor=[UIColor whiteColor] ;
    [self.view addSubview:labletext];
    
    
    
    UIButton *button1=[[UIButton alloc]init ];//]WithFrame:CGRectMake(50, 50, 20, 20)];
    button1.frame=CGRectMake(22, 35, 20, 20);
    [button1 setBackgroundImage:[UIImage imageNamed:@"return@2x.png"] forState:UIControlStateNormal];
    [button1 addTarget:self action:@selector(fanhui:) forControlEvents:UIControlEventTouchUpInside];
    [self.view addSubview:button1];
    
    
    
    UIButton *button2=[[UIButton alloc]init ];//]WithFrame:CGRectMake(50, 50, 20, 20)];
    button2.frame=CGRectMake(334, 35, 20, 20);
    [button2 setBackgroundImage:[UIImage imageNamed:@"导航菜单按钮@2x.png"] forState:UIControlStateNormal];
    [button2 addTarget:self action:@selector(messrightclick:) forControlEvents:UIControlEventTouchUpInside];
    [self.view addSubview:button2];
    
    

    
    
    
}
- (IBAction)fanhui:(id)sender {
    [self dismissModalViewControllerAnimated:YES];
}



-(void )  messrightclick:(id)sender{
    
//        isNo = !isNo;
//        NSLog(@"000000000");
//        if (!isNo) {
//            [self.view addSubview:_addView];
//        }else {
//            [_addView removeFromSuperview];
//        }
//        
//    
    
}


- (IBAction)xiangqing:(id)sender {
    bangbangxiangqingViewController *demoVC=[[bangbangxiangqingViewController alloc]init];
    //[demoVC setHidesBottomBarWhenPushed:YES];
    demoVC.modalTransitionStyle=UIModalTransitionStyleFlipHorizontal;
    [self presentViewController:demoVC animated:YES completion:NULL];
    

    
}


- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
